<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	if (session.getAttribute("urlProject")==null) { session.setAttribute("urlProject","http://localhost:8080/KiwiPresentationWeb/"); }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Project_View</title>
		<link rel="stylesheet" href="css/bootstrap.css"/>
		<link rel="stylesheet" href="css/global.css" type="text/css" media="screen" />
		<!-- <link rel="stylesheet" href="css/ui-lightness/jquery-ui.css" type="text/css" media="screen" /> -->
	</head>
	<body>
		<% 		
			if ((request.getParameter("id") != null) && (request.getParameter("pwd") != null)) {
				if (("user".equalsIgnoreCase(request.getParameter("id"))) && ("user".equalsIgnoreCase(request.getParameter("pwd")))) {
					session.setAttribute("connected",true);
					session.setAttribute("username",request.getParameter("id"));
				    response.sendRedirect(session.getAttribute("urlProject")+"index.jsp");
				}
			}
		%>
		<div class="hero-unit">
			<form action="ValidLogin" method=Post>
					<span>Enter Login ID: <input type=Text name="id" /></span>
					<br />
					<span>Enter Password: <input type=Password name="pwd"/></span>
					<br />
					<input type="Submit" value="Login"/>
					<input type="Reset" />
			</form>
		</div>
	</body>
</html>